<template>
  <h3>test 组件示例</h3>
  <div>
    <f-button @click="handlePrintConfig()">帆软打印配置</f-button>
    <f-button @click="handlePrint()">帆软打印</f-button>
  </div>
</template>

<script setup>
import { usePrint } from '../../packages/hooks';

const print = usePrint();

const handlePrintConfig = () => {
  const config = print.frPrintConfig();
  console.log('帆软打印配置', config);
}

const handlePrint = () =>
  print.fanruan([{
    code: "MZ_SettlementDoc",
    opticons: {
      "bizId": "1907606388187394048",
      "bookingIds": "1907358585397772288,1907371350980112384"
    }
  }]
  );

</script>

